trigger QuoteTrigger on Quote (before update, after delete,after update) {
    if (Trigger.isBefore && Trigger.isUpdate) {

        QuoteHandler.calcZc(trigger.newMap);
        QuoteHandler.disableOtherQuote(Trigger.new, Trigger.oldMap);
        QuoteHandler.setOppStageName(Trigger.new, Trigger.oldMap);
        CountTheLowerPriceHandler.quoteCnt(trigger.new, trigger.oldMap);
        // QuoteHandler.writeBackProduct(Trigger.new, Trigger.oldMap);
    }
    /*
    if (Trigger.isAfter && Trigger.isDelete) {
    	// 删除报价的时候也要修改业务机会项目类型
    	QuoteHandler.setOppProjectType(Trigger.oldMap);
    }

    if (Trigger.isAfter && Trigger.isUpdate) {
    	// 更新报价的时候也要修改业务机会项目类型
    	QuoteHandler.setOppProjectType(Trigger.newMap);
    }*/
}